import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
    path: '/system',
    name: 'system',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: '系统管理',
        requiresAuth: true,
        icon: 'icon-computer',
        order: 3,
        roles: ['admin'],
    },
    children: [
        {
            path: 'user',
            name: 'SysUser',
            component: () => import('@/views/system/user/index.vue'),
            meta: {
                locale: '用户管理',
                requiresAuth: true,
                roles: ['admin'],
            },
        },
        {
            path: 'role',
            name: 'SysRole',
            component: () => import('@/views/system/role/index.vue'),
            meta: {
                locale: '角色管理',
                requiresAuth: true,
                roles: ['admin'],
            },
        },
    ],
};

export default SYSTEM;
